extends Node

var attack_speed = 5.0
var attack_damage = 10
var current_attacks = 0
var player_scene = preload("res://Scenes/player.tscn")

# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
	pass

# 人物加一
func PlayerAddOne():
	var player = get_tree().get_nodes_in_group("player")[0]  # 获取玩家节点
	if player:
		player.spawn_follower()
	pass
	
func reset():
	attack_speed = 5.0  # 重置为初始值
	attack_damage = 10
	current_attacks = 0
	_ready();
